import React, { FC, useRef } from "react";
import VideoEl from "./VideoEl";

const MeidaCore: FC<{
  type: "video" | "audio";
  source: string;
  pointList?: [number, number][];
  width?: number;
  height?: number;
  showControl?: boolean;
}> = ({ type, showControl, source, pointList = [], width, height }) => {
  return (
    <div>
      <VideoEl
        showControl={showControl}
        source={source}
        pointList={pointList}
        width={width}
        height={height}
      />
    </div>
  );
};

export default MeidaCore;
